package com.why.day05_work3.ui.adapter;

import android.content.Context;


import com.why.day05_work3.R;
import com.why.day05_work3.base.BaseRlvAdapter;
import com.why.day05_work3.bean.NaviBean;

import java.util.ArrayList;

public class RlvAdapter extends BaseRlvAdapter<NaviBean.DataBean> {
    public RlvAdapter(Context context, ArrayList list) {
        super(context, list);
    }

    @Override
    protected int getLayout() {
        return R.layout.item;
    }

    @Override
    protected void bindData(BaseViewHolder holder, NaviBean.DataBean o) {
        /*TextView view = (TextView) holder.findView(R.id.tv);
        view.setText(o.getName());*/
        holder.setText(R.id.tv,o.getName());
    }
}
